#include "..\include\imp_typedefine.h"
#include "..\include\imp_io_wrapper.h"
#include "..\include\imp_syspara_wrapper.h"
#include"imp_charge_wrapper.h"
#include "windows.h"
#include "Mmsystem.h"

static charge_confirm_cb m_charge_callback;

static void TimerCallbackSysInfo(void* hwnd, UInt32 uMsg, UInt32 idEvent, UInt32 dwTime)
{
	KillTimer(0, idEvent);

	m_charge_callback((Int32)MIICmn_Charge_Ready, 
							1,
							"TEST: New Charge Engine.\n",
							"5;http://f.imichat.com/media/2010/3/1/1267422942708.mgp",
							1);
}

void miicmn_charge_callback_set(void* cb1,	charge_confirm_cb cb2,	void* cb3)
{
	m_charge_callback = cb2;
}
void miicmn_charge_point_start(ImpCStr point_id, ImpCStr param_data, ImpCStr app_id)
{
	SetTimer(0, 0, 2000, (TIMERPROC)TimerCallbackSysInfo);
}
void miicmn_charge_confirm(UInt16 retval, Int8* param_data)
{
	IMP_Trace("miicmn_charge_confirm: %d\n", retval);
}
void miicmn_charge_point_cleanup(void)
{
	IMP_Trace("miicmn_charge_point_cleanup\n");
}
